package com.uni.Result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    NO_OPERATOR_AUTH(401,"无权限访问"),
    LOGIN_ERROR(402,"登录名货密码错误"),
    NEED_LOGIN(404,"请登陆后操作"),
    SYSTEM_ERROR(500,"系统错误"),
    SERVICE_ERROR(405,"无token"),
    LOGIN_AUTH(406,"解析失败")

    ;

    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}